<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>关于created的疑问</title>
</head>
<body>
<div id="app">{{hello()}}</div>
<script src="../vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data(){
            return {}
        },
        created(){
            this.hello();
        },
        methods:{
            hello(){
                console.log('hello');
                return 'hello';
            }
        }
    })
</script>
</body>
</html>